package com.lkl.project.service.impl.inner;

import com.lkl.longapicommon.model.User;
import com.lkl.longapicommon.model.entity.InterfaceInfo;
import com.lkl.longapicommon.service.InnerUserInterfaceInfoService;
import com.lkl.project.service.UserInterfaceInfoService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

/**
 * @author longlong
 * @date 2023-12-22 11:28
 * description
 */
@DubboService
public class InnerUserInterfaceInfoServiceImpl implements InnerUserInterfaceInfoService {
    @Resource
    private UserInterfaceInfoService userInterfaceInfoService;
    @Override
    public User getInvokeUser(String accessKey, String secretKey) {
        return null;
    }

    @Override
    public InterfaceInfo getInterfaceInfo(String path, String method) {
        return null;
    }

    @Override
    public boolean invokeCount(long interfaceInfoId, long userId) {
        //调用注入的UserInterfaceService的invokeCount方法
        return userInterfaceInfoService.invokeCount(interfaceInfoId,userId);
    }
}
